package com.glodon.ggzy.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * JgMenu entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "JG_MENU")
public class JgMenu implements java.io.Serializable {

	// Fields    

	private String id;

	private String menuName;

	private String menuCode;

	private String menuUrl;

	private String remark;

	// Constructors

	/** default constructor */
	public JgMenu() {
	}

	/** full constructor */
	public JgMenu(String menuName, String menuCode, String menuUrl, String remark) {
		this.menuName = menuName;
		this.menuCode = menuCode;
		this.menuUrl = menuUrl;
		this.remark = remark;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 40)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "MENU_NAME", length = 300)
	public String getMenuName() {
		return this.menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@Column(name = "MENU_CODE", length = 100)
	public String getMenuCode() {
		return this.menuCode;
	}

	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}

	@Column(name = "MENU_URL", length = 1000)
	public String getMenuUrl() {
		return this.menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	@Column(name = "REMARK", length = 1000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
